import { Home, Layout, Login, Car, My, Classify } from '../views'

export interface RouteState {
	path: string,
	element: React.LazyExoticComponent<any>,
	children?: RouteState[]
}

const routes: RouteState[] = [{
	path: '/',
	element: Layout,
	children: [{
		path: '/',
		element: Home
	}, {
		path: '/car',
		element: Car
	}, {
		path: '/my',
		element: My
	}, {
		path: '/classify',
		element: Classify
	}]
}, {
	path: '/login',
	element: Login
}]


export default routes